<template>
    <div class="notice">
        <div class="cover0"></div>
        <img src="/static/images/icon/notice.png" alt="">
        <text class="srcoll_view">{{noticeTxt}}</text>
        <div class="cover"></div>
    </div>
</template>
<script>
export default {
  data() {
    return {
      noticeTxt: '如需要这些资料或学习探讨，请点击右下角的添加微信按钮完成复制或手动搜索微信号happydourou'
    }
  }
};
</script>
<style lang="scss" scoped>
@import "@/styles/varibles.scss";
.notice {
  position: relative;
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  overflow: hidden;
  border-bottom: 20rpx solid $bgColor;
  img {
    position: absolute;
    left: 20rpx;
    top: 25rpx;
    width: 30rpx;
    height: 30rpx;
  }
  .cover0 {
    position: absolute;
    left: 0;
    top: 0;
    width: 80rpx;
    height: 80rpx;
    background: #fff;
  }
  .cover {
    position: absolute;
    right: 0;
    top: 0;
    width: 80rpx;
    height: 80rpx;
    background: #fff;
  }
  @keyframes myfirst {
    0% {
      margin-left: 500rpx;
    }
    100% {
      margin-left: -1500rpx;
    }
  }
  text {
    padding-left: 70rpx;
    font-size: $fontSize1;
    color: $fontColor1;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    animation: myfirst 20s linear infinite;
  }
}
</style>


